@import '~ng-devui/styles-var/devui-var.scss';
@import 'src/app/@shared/styles/common.scss';

.home {
  width: 100%;
  font-family: myFont, sans-serif !important;
  font-size: 16px;
  margin-top: -11px;

  .home-main {
    width: 100%;

    &>div:not(.gallery, .bottomImgDiv) {
      width: 84.078%;
      margin: 0 auto;
    }
  }

  .topTitle {
    color: #fff;
    position: absolute;
    top: 55px;

    &>div:nth-child(1) {
      position: relative;
      margin-bottom: 50px;
    }

    &>div:nth-child(2)>div:not(:last-child) {
      font-size: 20px;
      line-height: 36px;
      margin-right: 331px;
    }

    &>div:nth-child(2)>div:nth-last-child(1)>div {
      display: inline-block;
    }

    & .title {
      margin-top: 0;
    }

    .remark {
      color: rgb(172, 170, 172);
      font-size: 12px;
      margin-left: 10px;
    }

    #primaryBtn {
      width: 248px;
      height: 72px;
      background-color: rgba(0, 0, 0, $alpha: 0.9);
      text-align: center;
      line-height: 72px;
      color: #fff;
      border-radius: 20px;
      cursor: pointer;
    }
  }

  .middleTitle {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 50%;
    margin-left: 50px;
    position: relative;

    &>div {
      width: 100%;
    }

    &>div:nth-child(1) {
      &>div:nth-child(2) {
        font-weight: 700;
      }
    }

    &>div:nth-child(2) {
      margin: 25px 0 20px;
      font-weight: 700;
    }

    &>div:nth-child(3) {
      line-height: 50px;
      margin-bottom: 20px;

      a {
        cursor: pointer;
        color: #252b3a;
      }

      a:hover {
        text-decoration: underline;
        color: #5e7ce0;
      }
    }

    &>div:nth-last-child(1) {
      position: absolute;
      bottom: 6px;
      display: flex;
      justify-content: flex-start;

      &>div {
        width: 180px;
        height: 60px;
        line-height: 60px;
        background-color: #5e7ce0;
        border-radius: 10px;
        text-align: center;
      }

      a {
        color: #fff;
        cursor: pointer;
      }

      &>div:nth-child(1) {
        margin-right: 30px;
      }
    }
  }

  .bottomTitle {
    &>div:nth-child(1) {
      &>div:nth-child(2) {
        font-weight: 700;
      }
    }

    &>div:nth-child(2) {
      display: flex;
      justify-content: center;
      margin: 50px 0 30px;
    }

    img {
      border-radius: 50%;
      width: 30%;
    }
  }

  .top,
  .middle {
    img {
      width: 100%;
      border-radius: 6px;
    }
  }

  .top {
    min-height: 720px;
    position: relative;

    .hot {
      ul {
        position: absolute;
        bottom: 75px;

        li {
          float: left;
          margin-right: 30px;
          position: relative;

          img {
            width: 160px;
            height: 160px;
            cursor: pointer;
            opacity: 0.4;

            &:hover {
              opacity: 0.6;
            }
          }

          ::ng-deep .devui-progress-bar {
            background-color: #fff;
          }

          ::ng-deep .devui-progress {
            background-color: rgba(255, 255, 255, 0.2);
          }
        }
      }

      .hot-item {
        width: 600px;
        height: 600px;
        position: absolute;
        top: 40px;
        right: 0;

        &:nth-of-type(1) {
          z-index: 100;
        }

        &>img {
          width: 100%;
          height: 100%;
        }

        .first-item {
          position: absolute;
          width: 100%;
          height: 50%;
          bottom: 0;
          background: linear-gradient(180deg,
              rgba(0, 0, 0, 0),
              rgba(0, 0, 0, 0.6) 80%,
              rgba(0, 0, 0, 0.7));

          &:hover {
            opacity: 0.9;
            background: linear-gradient(180deg,
                rgba(0, 0, 0, 0),
                rgba(0, 0, 0, 0.4) 80%,
                rgba(0, 0, 0, 0.6));
          }

          .info {
            width: 100%;
            padding: 30px;
            position: absolute;
            bottom: 0;
            opacity: 1;
            color: #fff;

            .issuer {
              display: flex;
              justify-content: space-between;
              align-items: center;

              span {
                font-size: 14px;
              }

              div {
                display: flex;
                align-items: center;
                padding: 14px;
                background-color: rgba(0, 0, 0, 0.4);
                border-radius: 4px;
              }
            }

            .info-top {
              display: flex;
              justify-content: space-between;

              &>span:first-child {
                font-size: 20px;
                color: #fff;
              }
            }

            .info-middle {
              margin-bottom: 28px;

              &>span {
                font-size: 14px;
                color: $devui-text;
              }
            }

            div {
              font-size: 12px;
            }
          }
        }
      }
    }
  }

  .glass {
    min-height: 720px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 20%;
    filter: blur(20px);
    clip-path: inset(15px 0px);
    position: absolute;
    top: 0;
  }

  .middle {
    min-height: 300px;

    .middle-content {
      width: 100%;

      .middle-title {
        color: #fff;
        margin: 10px 0;
        font-weight: bold;
        font-size: 24px;
      }

      .middle-tabs {
        margin-top: 50px;
        margin-bottom: 40px;

        hr {
          border-top-color: #23252d;
          position: absolute;
          width: 80%;
        }

        .middle-tabs-content {
          display: flex;
          justify-content: space-between;

          span {
            width: 160px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            display: inline-block;
            font-size: 16px;
            border-radius: 20px;
            color: $devui-text;
            border: 1px solid $devui-line;
            background-color: $devui-global-bg;
            position: relative;
            z-index: 10;

            &:hover {
              border: 1px solid $devui-text;
              color: #fff;
              cursor: pointer;
            }
          }

          .tab-active {
            border: 1px solid rgba(255, 255, 255, 0.4);
            color: #fff;
          }

          ul {
            li {
              float: left;
              margin-right: 30px;
            }
          }
        }
      }

      .middle-list {
        app-collection-item {
          margin-right: 1.9%;

          &:nth-of-type(4n) {
            margin-right: 0;
          }
        }
      }
    }
  }

  .bottomImgDiv {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .bottomImg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;

    &>div:nth-child(2) {
      display: flex;
      justify-content: center;
      margin: 12px 0;
      width: 100%;

      img {
        border-radius: 50%;
        width: 30%;
      }
    }
  }

  .title {
    font-size: 34px;
    line-height: 51px;
    font-weight: 700;
    font-family: 微软雅黑, Tahoma, Helvetica, Arial, sans-serif;
  }

  button {
    height: 40px !important;
  }

  .line {
    border-top: 1px solid #eee;
    margin: 30px 0;
  }

  .active {
    border-radius: 6px !important;
    transition: all 1s;
  }

  .normal {
    border-radius: 50% !important;
    transition: all 1s;
  }

  .contentText {
    display: flex;
    justify-content: center;

    &>div {
      width: 64%;
    }
  }

  .artists {
    text-align: center;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .notransition {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
  }

  .gallery {
    font-weight: 700;

    .carouselDiv {
      display: flex;
      justify-content: center;
      height: 285px;
    }

    .carousel {
      position: relative;
      width: 1340px;
      overflow: hidden;
    }

    .imgList {
      display: flex;
      justify-content: flex-start;
      position: absolute;
      left: 0px;

      div {
        margin-right: 10px;
        position: relative;
      }

      span {
        position: absolute;
        bottom: -17px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        font-size: 12px;
        white-space: nowrap;
      }

      div:nth-last-child(1) {
        margin-right: 0;
      }

      img {
        width: 260px;
        height: 260px;
        border-radius: 6px;
      }
    }

    i {
      width: 50px;
      height: 50px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 100;
      cursor: pointer;
    }

    i.left {
      left: 10px;
      background: url('../../assets/avatar/left.png') no-repeat center;
    }

    i.right {
      right: 10px;
      background: url('../../assets/avatar/right.png') no-repeat center;
    }

    .leftActive {
      background: url('../../assets/avatar/left.png') no-repeat center;
    }

    .leftNormal {
      cursor: not-allowed;
      background: url('../../assets/avatar/left-disable.png') no-repeat center;
    }

    .rightActive {
      cursor: pointer;
      background: url('../../assets/avatar/right.png') no-repeat center;
    }

    .rightNormal {
      cursor: not-allowed;
      background: url('../../assets/avatar/right-disable.png') no-repeat center;
    }
  }
}

@media (min-width: 992px) and (max-width: 1700px) {

  /* 逗号表示或关系，and表示与 */
  .textLink {
    line-height: 25px !important;
  }

  .middleTitle>div:nth-child(2) {
    margin: 5px 0 5px !important;
  }

  .middleTitle>div:nth-child(3) {
    margin-bottom: 5px !important;
  }

  .middleTitle>div:nth-last-child(1) {
    &>div {
      display: inline-block;
      width: 180px !important;
      height: 50px !important;
      line-height: 50px !important;
    }
  }
}
